home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-06-18 | 2.1 KB | 46 lines | [TEXT/MPS ] |
- GetNextWindow (and therefore GetNextDocument) have been modified to return
- invisible windows (or documents with invisible windows). This change was made
- to allow kHideOnClose windows to not have to be saved in a global. You can
- access the window or document by calling one of the above functions now, even
- if the window is curently hidden.
-
- __________
-
- The document procs for reading and writing the default document header are no
- longer initialized in File2.c. They are left nil. This means that you will no
- longer get reading and writing the default document header information as a
- default behavior.
-
-
- HOWEVER:
-
- If you call DefaultInitDocument, they are set as they were before. This means that
- if you still want this behavior and you use the hierarchical document package, then
- you will still get the benefit of reading and writing the default document header.
-
- If you want to use the default document header facilities without the hierarchical
- document package, simply initialize the procs for reading and writing the header
- yourself in your own document initialization code. You would add the following
- two lines (assuming that the document variable is called frHndl):
-
- (*frHndl)->fileState.readDocumentHeaderProc = DefaultReadDocumentHeader;
- (*frHndl)->fileState.writeDocumentHeaderProc = DefaultWriteDocumentHeader;
-
-
- This will give you the behavior you want.
-
- The reason for the change is that some documents want the standard header and some don't.
- By explicitly setting them within the framework meant that the code got linked in, even
- if you then later set the procs to nil (because you didn't want the header). This caused
- dead code to get linked in. By assuming that the header isn't going to be used, and by
- having the application stating that they will indeed be used, we can prevent this dead
- code from getting linked in.
-
- Again, if you call DefaultInitDocument, you do indeed get the header information. This is
- done because it isn't a bad assumption to make. If you are calling DefaultInitDocument,
- you want things handled for you, and this would include the header information. If you are
- doing something custom, then you want more control.
-
- __________
-
-